package com.haiyan.demo.problem03;

public abstract class Animal {
    private String name;
    private String sex;
    private int age;
    private String color;

    public Animal() {
    }

    public Animal(String name, String sex, int age, String color) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.color = color;
    }

    public abstract void eat();
    public  abstract void sleep();
    public abstract void call();
}
